//
//  CollectionViewCell.m
//  TableviewNestCollectionview
//
//  Created by 岚海网络 on 2018/12/19.
//  Copyright © 2018年 ljm. All rights reserved.
//

#import "CollectionViewCell.h"

@implementation CollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    self.contentView.backgroundColor = [UIColor redColor];
    
    self.ImageV.userInteractionEnabled = YES;
    
    UITapGestureRecognizer *gesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(gestureWithAction:)];
    [self.ImageV addGestureRecognizer:gesture];
    
}

- (void) gestureWithAction:(UITapGestureRecognizer *)gesture
{
    if (self.TapImageWithBlock) {
        self.TapImageWithBlock(gesture);
    }
}


@end
